<?php
$ssFilter = $this->arrParam['ssFilter'];
		$lang = $ssFilter['lang'];
		if($lang == ''){
			$lang = 'vi';
		}else{
			$lang = $ssFilter['lang'];
		}
		
echo $this->blkBreadcumb(array(
			'Trang chủ'=> array(
					'module'	=>'default',
					'controller'=>'index',
					'action'	=>'index',
					'router'	=> 'home',
					'params'	=> array(
									'lang'=>$lang
								)
				),
			'Liên Hệ'=> array(
					'module'	=>'default',
					'controller'=>'index',
					'action'	=>'contact',
					'router'	=>'contact',
					'params'	=> array(
									'lang'=>$lang
								)
				),
			
		));
?>
<div class="clear"></div>
<!-- CONTENT (start) -->
<?php

	$fulname		=	$this->formText('name',$this->Item['name'],null);
	$email			=	$this->formText('email',$this->Item['email'],null);
	$phone			= 	$this->formText('phone',$this->Item['phone'],null);
	$content		= 	$this->formTextarea('content',$this->Item['content'],array('rows'=>10, 'col'=>80));
		
	$captcha 		= 	$this->captcha;
	$txtCaptcha 	= 	$this->formText('captcha','');
	$txtID 			= 	$this->formHidden('captchaID',$this->captcha_id);		
	$urlCaptch		= 	$this->baseUrl('default/index/captcha-image');	
	$inputCaptcha	= 	$this->formText('captcha',null,array("class"=>"code text"));
	
	$submit			= 	$this->formSubmit('Submit','Gửi',array("class"=>"submit"));
	$linkContact	= 	$this->baseUrl('default/index/contact');

	//info
	$tblManage 		= 	new Zendvn_Models_Pages();
	$Items 			= 	$tblManage->getItem($this->_arrParam,array('task'=>'public-home'));
	$addressTc		= 	$Items['address'];
	$emailTc		= 	$Items['mail'];
	$phoneTc		= 	$Items['phone'];

	
?>
<?php if(empty($this->messages[0])):?>
<div class="detail">
                         <div class="box width-100">
                             <div class="cnt-box">
                                   <!--------- Noi dung--------->
                                    <div class="box-cnt width-100">
                                        <!--------- Tieu de bai viet--------->
                                        <div class="title width-100">
                                            <h2><a href="#" title="5 nhom thuc pham">Liên hệ </a></h2>
                                        </div>
                                        <!--------- Tieu de bai viet(end)--------->

                                        <div class="clear"></div>
                                        <div class="line-white"></div>
                                        <!--------- Tài khoản--------->

                                        <div class="login_student width-35 float-left">
      			                            <form name="formRegister" method="post" action="" enctype="multipart/form-data" class="mar-top-10">
                                  				<div class="lev">
                                            	    <p class="sub-lev"><span>Họ và tên</span>  </p>
                                            	    <?php echo $fulname;?>
                                            	    <?php if(!empty($this->messageError['name'])):echo '<p class="msg_error">'.$this->messageError['name'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Email </span> </p>
                                                	<?php echo $email?>
                                                	<?php if(!empty($this->messageError['email'])):echo '<p class="msg_error">'.$this->messageError['email'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                	<p class="sub-lev"><span>Điện thoại</span></p>
                                                	<?php echo $phone?>
                                                	<?php if(!empty($this->messageError['phone'])):echo '<p class="msg_error">'.$this->messageError['phone'].'</p>';endif;?>
                                                </div>
                                                <div class="lev">
                                                    <p class="sub-lev"><span>Nội dung</span></p>
                                                    <?php echo $content?>
                                                    <?php if(!empty($this->messageError['content'])):echo '<p class="msg_error">'.$this->messageError['content'].'</p>';endif;?>
                                                </div>
                                      			<div class="lev">
                                                    <p class="sub-lev"><span class="sub-lev">Mã xác nhận: </span> </p>
                                                    <div>
                                      	                <?php echo $inputCaptcha?>
                                      	                <?php if(!empty($this->messageError['captcha'])):echo '<p class="msg_error">'.$this->messageError['captcha'].'</p>';endif;?>
                                      				</div>
                                                </div>
                                                <div class="lev">
                    				             	<div>
                    									<div class="border-img"><?php echo $txtID.$captcha;?>
                                                            </div>
                    					             	<span id="refresh" class="refresh"></span>
                    				             	  </div>
                    				             </div>
                                				<div class="lev-1">
                                					<?php echo $submit?>
                                				</div>
      			                            </form>
      		                            </div>

                                        <div class="contact width-60 float-right mar-top-30 ">
                                            <div class="contact-group01">
                                                  <div class="float-left width-50">
                                                     <a href="#" onclick="return false;" title="anh nha hang"> <img src="<?php echo $this->imgUrl; ?>/default/lienhe01.png" alt="" title="hinh anh nha hang 01">  </a>
                                                  </div>
                                                  <div class="float-right width-50">
                                                      <a href="#" onclick="return false;" title="monan"> <img src="<?php echo $this->imgUrl; ?>/default/lienhe02.png" alt="" title="hinh anh nha hang 01"></a>
                                                  </div>
                                                  <div class="clear"></div>
                                            </div>
                                            <div class="contact-group02 width-100 mar-top-30">
                                                <div class="info width-100">
                                                    <span class="info-img width-10 float-left add">&nbsp;</span>
                                                    <span class="info-text width-85 float-right">Số 14 Einteins, P. Bình Thọ, Quận Thủ Đức , TP. Hồ Chí Minh</span>
                                                </div>
                                                <div class="info width-100">
                                                    <span class="info-img width-10 float-left email">&nbsp;</span>
                                                    <span class="info-text width-85 float-right">Email :  sesanit@gmail.com</span>
                                                </div>
                                                <div class="info width-100">
                                                    <span class="info-img width-10 float-left phone">&nbsp;</span>
                                                    <span class="info-text width-85 float-right">Phone :  0937.287.869</span>
                                                </div>
                                            </div>

      		                            </div>

                                        <!--------- Tài khoản---------->

                                  </div>
                                   <!---------Noi dung(end)-------->
                             </div>
                         </div>
                    </div>
                    <?php else:
           	echo '<div class="notice">'.$this->messages[0].'</div>';
      		endif;?>
<script type="text/javascript">
<!--
function refreshCaptcha(){
	var captchaID = $("#captchaID").val();
	$.get('<?php echo $urlCaptch . '/captchaID/';?>'+captchaID,getData);
}
$(document).ready(function(){
	$('#refresh').click(function(e){
		e.preventDefault();
		refreshCaptcha();
	});
});

function getData(data){
	$('.border-img').html(data);
	return false;
}
</script>

                 